﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="V5_EShop._Template.Default.search" %>

<%@ Import Namespace="V5_Common" %>
<%@ Register Src="Controls/getHeader2.ascx" TagName="getHeader2" TagPrefix="mm" %>
<%@ Register Src="Controls/getDismode.ascx" TagName="getDismode" TagPrefix="mm" %>
<%@ Register Src="Controls/getFooter.ascx" TagName="getFooter" TagPrefix="mm" %>
<%@ Register Src="Controls/getSearch.ascx" TagName="getSearch" TagPrefix="mm" %>
<%@ Register Src="Controls/getProductSingleClassList2.ascx" TagName="getProductClass2"
    TagPrefix="mm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/<%=TemplatePath %>/css/init.css" rel="stylesheet" type="text/css">
    <link href="/<%=TemplatePath %>/css/Search.css" rel="stylesheet"
        type="text/css" />
    <link href="/<%=TemplatePath %>/css/head.css" rel="stylesheet" type="text/css">
    <title>
        <%=config.SiteTitle %>-商品搜索</title>

    <script type="text/javascript" src="/Scripts/jquery_min.js"></script>

</head>
<body>
    <div id="page">
        <mm:getHeader2 ID="IndexHeader1" runat="server" />
        <div class="content">
            <mm:getSearch ID="getSearch" runat="server" />
            <div class="leftbox">
                <div class="Categories">
                    <h2>
                        商品分类</h2>
                    <%--商务衬衫--%>
                    <mm:getProductClass2 ID="getProductClass1" runat="server" ParamValue="$ClassID=2" />
                    <%--短袖衬衫--%>
                    <mm:getProductClass2 ID="getProductClass2" runat="server" ParamValue="$ClassID=4" />
                    <%-- 休闲衬衫--%>
                    <mm:getProductClass2 ID="getProductClass3" runat="server" ParamValue="$ClassID=17" />
                    <%--牛津纺衬衫--%>
                    <mm:getProductClass2 ID="getProductClass4" runat="server" ParamValue="$ClassID=5" />
                </div>
                <!--衬衫分类-->
                <!--价格区间 -->
                <div class="Categories">
                    <h2>
                        价格区间</h2>
                    <strong><a href="/search.aspx?low=0&high=100">0-100元区间 （36）</a></strong> <strong><a
                        href="/search.aspx?low=100&high=200">101元-200元区间（200）</a> </strong><strong><a href="/search.aspx?low=201&high=300">
                            201元-300元 （5）</a> </strong><strong><a href="/search.aspx?low=301&high=400">301元-400元区间
                                （12）</a></strong> <strong><a href="/search.aspx?low=401&high=500">401元-500元区间 （16）</a></strong>
                    <strong><a href="/search.aspx?low=501&high=0">500元以上 （2）</a> </strong><span>请输入查询价格区间</span>
                    <div class="txet">
                        <form id="search" method="post" action="/search.aspx">
                        <input type="text" name="low" id="low" class="textfield_02" />
                        -
                        <input type="text" name="high" id="high" class="textfield_02" />
                        <input type="submit" name="button2" id="button2" value="" class="button2" />
                        </form>
                    </div>
                </div>
                <div class="Advertisement">
                    <a >
                        <img src="/<%=TemplatePath %>/images/Search/pic_02.gif" width="209"
                            height="300"></a></div>
            </div>
            <form id="form1" runat="server">
            <div class="rightbox">
                <img src="/<%=TemplatePath %>/images/Search/guanggao.gif" width="730"
                    height="95">
                <span class="guild">首页 > 商品搜索</span>
                <div class="shop_px">
                    <span class="shop_span01">显示方式：</span>
                    <%-- 显示方式2--%>
                    <a href="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=0&showid=2&orderid=0&low=0&high=0&pageid=1">
                        <img src="/<%=TemplatePath %>/images/Search/icon_01.gif" width="18"
                            height="17">
                    </a>
                    <%--  显示方式1  --%>
                    <a href="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=0&showid=1&orderid=0&low=0&high=0&pageid=1">
                        <img src="/<%=TemplatePath %>/images/Search/icon_02.gif" width="18"
                            height="17">
                    </a><span class="shop_span01">排序方式：</span>
                    <%--  排序方式1--%>
                    <a href="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=1&low=<%=low %>&high=<%=high %>&pageid=1">
                        <img src="/<%=TemplatePath %>/images/Search/icon_03.gif" width="18"
                            height="17">
                    </a>
                    <%-- 排序方式2  --%>
                    <a href="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=2&low=<%=low %>&high=<%=high %>&pageid=1">
                        <img src="/<%=TemplatePath %>/images/Search/icon_04.gif" width="20"
                            height="17">
                    </a>
                    <%-- 排序方式3--%>
                    <a href="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=3&low=<%=low %>&high=<%=high %>&pageid=1">
                        <img src="/<%=TemplatePath %>/images/Search/icon_06.gif" width="17"
                            height="17">
                    </a>
                    <%--  下拉排序凡是--%>
                    <select name="ddlgoorder" id="ddlgoorder" class="select_1" onchange="searchselect();">
                        <option value="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=1&low=<%=low %>&high=<%=high %>&pageid=1">
                            上架新品</option>
                        <option value="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=2&low=<%=low %>&high=<%=high %>&pageid=1">
                            按销量由高到低</option>
                        <option value="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=3&low=<%=low %>&high=<%=high %>&pageid=1">
                            按价格从低到高</option>
                        <option value="/Search.aspx?txtsearchkey=<%=Server.UrlEncode(searchkey) %>&productclassid=<%=_classid %>&showid=<%=_showid %>&orderid=4&low=<%=low %>&high=<%=high %>&pageid=1">
                            按价格从高到低</option>
                    </select>
                    <div class="clear">
                    </div>
                </div>
                
                <ul class="ul_pic">
                    <asp:Repeater ID="rpList1" runat="server">
                        <ItemTemplate>
                            <li><a href="product-details-<%#DataBinder.Eval(Container.DataItem,"ID") %>.aspx"
                                class="gray">
                                <img src="<%# this.getPic(DataBinder.Eval(Container.DataItem,"ProductBigPic"),"s") %>" width="150"
                                    height="200"><%#Input.CutString(DataBinder.Eval(Container.DataItem,"ProductName").ToString(),20,"") %></a><br />
                                <span class="gray_font">市场价<a>￥<%#DataBinder.Eval(Container.DataItem, "ProductMarketPrice")%></a></span>
                                团购<span class="red_font">￥<%#DataBinder.Eval(Container.DataItem, "ProductMemberPrice")%></span></li>
                        </ItemTemplate>
                    </asp:Repeater>
                    <div class="clear">
                    </div>
                </ul>
                <asp:Repeater ID="rpList2" runat="server">
                    <ItemTemplate>
                        <div class="ul_pic01">
                            <a href="product-details-<%#DataBinder.Eval(Container.DataItem,"ID") %>.aspx" target="_blank">
                                <img src="<%#this.getPic(DataBinder.Eval(Container.DataItem,"ProductBigPic"),"s") %>" width="150"
                                    height="200" class="sp"></a> <span class="nr">
                                        <h2>
                                            <a href="product-details-<%#DataBinder.Eval(Container.DataItem,"ID") %>.aspx" target="_blank">
                                                <%#DataBinder.Eval(Container.DataItem,"ProductName") %></a></h2>
                                        <ul class="ul_pic_01">
                                            <%-- 产品属性--%>
                                           <asp:HiddenField ID="hfProductFields" runat="server" Value='<%#Bind("ProductSingleFields") %>' />
                                            <asp:Repeater ID="rpSingleList" runat="server">
                                                <ItemTemplate>
                                                <li><span><%#DataBinder.Eval(Container.DataItem,"m1") %>：</span><%#DataBinder.Eval(Container.DataItem,"m2") %></li>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            <div class="clear">
                                            </div>
                                        </ul>
                                    </span><span class="ul_pic_02">
                                        <ul>
                                            <li><span>市场价：</span><a class="no"><%#DataBinder.Eval(Container.DataItem, "ProductMarketPrice")%>元</a></li>
                                            <li><span class="Price">团购价：￥<%#DataBinder.Eval(Container.DataItem, "ProductMemberPrice")%></span></li>
                                            <li><span>商品级别：</span><br />
                                                <span>
                                                    <img src="/<%=TemplatePath %>/images/Search/huangguan_lan.gif" width="16"
                                                        height="16"><img src="/<%=TemplatePath %>/images/Search/huangguan_lan.gif"
                                                            width="16" height="16"><img src="/<%=TemplatePath %>/images/Search/huangguan_lan.gif"
                                                                width="16" height="16"><img src="/<%=TemplatePath %>/images/Search/huangguan_lan.gif"
                                                                    width="16" height="16"><img src="/<%=TemplatePath %>/images/Search/huangguan_lan.gif"
                                                                        width="16" height="16"></span>
                                                <div class="clear">
                                                </div>
                                            </li>
                                            <li><span>共有0条信息</span><br />
                                                <input type="button" name="button" id="button" value="" class="button_01" onclick="javascript:window.location.href='/product-details-<%#DataBinder.Eval(Container.DataItem, "ID") %>.aspx'" />
                                            </li>
                                        </ul>
                                    </span>
                            <div class="clear">
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div class="shop_px_foot">
                    <webdiyer:AspNetPager ID="Pager" runat="server" HorizontalAlign="Center" Width="100%"
                        ShowPageIndexBox="Always" EnableUrlRewriting="true" OnPageChanged="Pager_PageChanged"
                        PageSize="12">
                    </webdiyer:AspNetPager>
                </div>
            </div>
            </form>
            <div class="clear">
            </div>
        </div>
        <%--  配送方式--%>
        <mm:getDismode ID="getDismode1" runat="server" />
        <%--网站底部--%>
        <mm:getFooter ID="getFooter1" runat="server" />
    </div>

    <script type="text/javascript">
        function searchselect() {
            var url = $("#ddlgoorder").val();
            window.location.href = url;
        }
    </script>

</body>
</html>
